!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.r(t);var r={domUniqueId:0,eventPrefix:"",eventsFallbackAlias:{mouseenter:"mouseover",mouseleave:"mouseout"},cssStyle:{},cssStyleArray:[],rawCssStyle:"",cssPropsAlias:{fontFamily:"font-family",fontWeight:"font-weight",fontStyle:"font-style",fontSize:"font-size",lineHeight:"line-height"}};Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var i=0;if(arguments.length>0&&((i=Number(arguments[1]))!=i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(i>0||-1)*Math.floor(Math.abs(i)))),i>=n)return-1;for(var r=i>=0?i:Math.max(n-Math.abs(i),0);r<n;r++)if(r in t&&t[r]===e)return r;return-1});!function(){var e,t,n="transformOrigin,textShadow,textStroke,boxShadow,borderRadius,borderImage,opacity".split(","),i="Webkit,Moz,O,ms,Khtml".split(","),r=window.document.createElement("detect"),o=[];function a(e){if("string"!=typeof e)return!1;for(var t=e.substr(0,1).toUpperCase()+e.substr(1),n="".concat(e," ").concat(i.join("".concat(t," "))).concat(t).split(" "),o=0,a=n.length;o<a;o++)if(""===r.style[n[o]])return!0;return!1}for(e in n)o[t=n[e]]=a(t)}();function o(){if(null!=r.IEVersion)return r.IEVersion;var e=-1;if("Microsoft Internet Explorer"===navigator.appName){var t=navigator.userAgent;null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))}return r.IEVersion=e,e}function a(e,t){return e.className.match(new RegExp("(\\s|^)".concat(t,"(\\s|$)")))}function s(e,t){a(e,t)||(e.className+=" ".concat(t))}function l(e,t){if(a(e,t)){var n=new RegExp("(\\s|^)".concat(t,"(\\s|$)"));e.className=e.className.replace(n," ")}}function c(e){var t={};if(!e)return t;var n,i,r=e,a=r.type,s=r.scolor;switch("lgrad"!==a&&"rgrad"!==a||(e.gradColors&&e.gradColors.length?e.gradColors.length<2&&e.gradColors.length>0&&(s=e.gradColors[0].c,a="solid"):(a="solid",s="#fff")),"true"===String(e.useBorder)&&(t.border="1px solid ".concat(e.borderColor)),t["background-image"]="",a){case"none":break;case"image":t=function(e,t){var n,i,r=u(t);for(var o in e["background-image"]="url(".concat(r,")"),e["--retina-src"]=r,t)switch(o){case"scaleMode":case"verticalAlign":case"horizontalAlign":switch(t.verticalAlign){case"top":n="0";break;case"middle":n="50%";break;case"bottom":n="100%"}switch(t.horizontalAlign){case"left":i="0";break;case"center":i="50%";break;case"right":i="100%"}e["background-position"]="".concat(i," ").concat(n);break;case"contentOffsetX":"tile"===t.scaleMode&&(e["background-position-x"]="".concat(t[o],"%"));break;case"contentOffsetY":"tile"===t.scaleMode&&(e["background-position-y"]="".concat(t[o],"%"))}return e}(t,e=function(e){return e&&e.type&&"image"===e.type&&e.tile&&(e.scaleMode="tile",e.contentScale=100,e.contentOffsetX=50,e.contentOffsetY=50,delete e.tile),e}(e));break;case"solid":if(s&&s.includes("rgba")){var l=o();l>-1&&l<9&&(i=s.replace(/[^\d,.]/g,"").split(","),n={r:i[0],g:i[1],b:i[2],a:i[3]},s="#".concat(0!=!1?(256+parseInt(256*Number(n.a))).toString(16).substr(1):"").concat((256+parseInt(n.r)).toString(16).substr(1)).concat((256+parseInt(n.g)).toString(16).substr(1)).concat((256+parseInt(n.b)).toString(16).substr(1)))}t["background-color"]=s;break;case"rgrad":case"lgrad":for(var c=e.gradColors,d=[],p=0;p<c.length;p++)d.push("".concat(c[p].c," ").concat(c[p].p,"%"));var f=d.join(),h="linear",y="".concat(e.rotation||"0","deg");if("rgrad"===e.type){h="radial";var b=e.rgradPos||"center";if("custom"===b){var g="";e.gradPosX&&e.gradPosX.includes("%")||(g="px");var v="";e.gradPosY&&e.gradPosY.includes("%")||(v="px"),b="".concat((e.gradPosX||"0")+g," ").concat(e.gradPosY||"0").concat(v)}y="".concat(b,", circle cover")}else e.backgroundRotation&&(y="".concat(e.backgroundRotation,"deg"));if(c&&c.length>0)(e=t["background-image"]=[]).push("-webkit-".concat(h,"-gradient(").concat(y,",  ").concat(f,")")),e.push("-moz-".concat(h,"-gradient(").concat(y,",  ").concat(f,")")),e.push("-o-".concat(h,"-gradient(").concat(y,",  ").concat(f,")")),e.push("-ms-".concat(h,"-gradient(").concat(y,",  ").concat(f,")"));t.filter="progid:DXImageTransform.Microsoft.gradient( startColorstr='".concat(c[0].c,"', endColorstr='").concat(c[c.length-1].c,"',GradientType=0 )")}return t}function u(e){if(window.bannerConfig.hqImages&&e.hqUrl)return e.hqUrl;if(e.localUrl){var t=void 0!==window.bannerConfig.imgLocalPath?window.bannerConfig.imgLocalPath:"media/";return"".concat(t).concat(e.localUrl)}return e.url&&e.url.includes("//")?e.url:e.url?window.bannerConfig.photosUrl+e.url:null}function d(e,t){for(var n in t)e.style[n]=t[n]}function p(e){return JSON.parse(JSON.stringify(e))}function f(e){return e&&0!==String(e).length?e.includes("://")?e:"http://".concat(e):""}function h(e,t){var n=window.innerWidth/e,i=window.innerHeight/t;return{proportion:Math.min(n,i)}}var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.assetsCache={},this.fontTypes={CUSTOM:"custom",BANNERSNACK:"bannersnack",GOOGLE:"google"},this.loadedSlides={},this.imagesToLoad=[],this.fontsToLoad=[],this.gFontsToLoad=[],this.videosToLoad=[],this.audiosToLoad=[],this.getFontUrl=function(e){if(e.localUrl){var t=void 0!==window.bannerConfig.fontLocalPath?window.bannerConfig.fontLocalPath:"fonts/";return window.bannerConfig.embedUrl&&(t=window.bannerConfig.embedUrl+t),"".concat(t).concat(e.localUrl)}switch(e.fontFamily=this.unquoted(e.fontFamily),e.fontType){case this.fontTypes.BANNERSNACK:return"//".concat(e.fontUrl);case this.fontTypes.CUSTOM:return e.fontUrl?"//".concat(e.fontFaceUrl?e.fontUrl:"".concat(e.fontUrl,".ttf")):"";case this.fontTypes.GOOGLE:var n="".concat(e.fontFamily.split(" ").join("+"),":").concat(parseInt(e.fontWeight));return"italic"===e.fontStyle&&(n+="i"),n;default:return""}},this.loadGFonts=function(){var e=this,t=this,n=this.gFontsToLoad.concat();if(n.length){var i=function(){for(var i=0;i<n.length;i++){var r=e.gFontsToLoad.indexOf(n[i]);r>-1&&e.gFontsToLoad.splice(r,1)}t.resolveIfAssetsLoaded()},r="https://fonts.googleapis.com/css?family=".concat(n.join("|"));this.bannerConfig.preview&&(r+="&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin,latin-ext,vietnamese");var o=window.document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),o.setAttribute("href",r),o.addEventListener("load",i),o.addEventListener("error",i),window.document.head.appendChild(o)}},this.addFontToDOM=function(e){var t,n,i,r=this,o="ttf";e.fontType||(e.fontType=this.fontTypes.GOOGLE);var a=this.getFontUrl(e);if(a&&!window.assetsCache[a]){switch(e.fontType!==this.fontTypes.GOOGLE&&this.fontsToLoad.push(a),t=function(){r.fontsToLoad.pop(),r.resolveIfAssetsLoaded()},e.fontType){case this.fontTypes.GOOGLE:this.gFontsToLoad.push(a);break;case this.fontTypes.BANNERSNACK:case this.fontTypes.CUSTOM:if(this.relPreloadSupported()&&(o=a.substr(a.lastIndexOf(".")+1),(i=window.document.createElement("link")).setAttribute("rel","preload"),i.setAttribute("type","font/".concat(o)),i.setAttribute("as","font"),i.setAttribute("href",a),"file:"!==window.location.protocol&&i.setAttribute("crossorigin","anonymous"),i.addEventListener("load",t),i.addEventListener("error",t),window.document.head.appendChild(i)),e.fontFamily){var s="".concat("@font-face {\nfont-family: '").concat(e.fontPrefix||"").concat(e.fontFamily.replace(/'/g,"\\'"),"';\n")+"font-style: ".concat(e.fontStyle,";\n")+"font-weight: ".concat(e.fontWeight,";\n")+"src: url(".concat(a,");\n")+"}\n";(n=window.document.createElement("style")).appendChild(window.document.createTextNode(s)),this.relPreloadSupported()||(n.addEventListener("load",t),n.addEventListener("error",t)),window.document.head.appendChild(n)}}window.assetsCache[a]=!0}},this.unquoted=function(e){return"string"==typeof e?e.replace(/(^")|("$)/g,""):e},this.relPreloadSupported=function(){return function(e,t){if(!e||!e.supports)return!1;try{return e.supports(t)}catch(e){return!1}}(window.document.createElement("link").relList,"preload")},this.getSlideId=function(e){return e.displayData?e.displayData.properties.id:e.properties.id},this.getSlideLoaded=function(e){var t=this.getSlideId(e);return!!this.loadedSlides[t]&&this.loadedSlides[t]},this.setSlideLoaded=function(e){var t=this.getSlideId(e);this.loadedSlides[t]=!0},this.resolveIfAssetsLoaded=function(e){var t=0===this.imagesToLoad.length&&0===this.videosToLoad.length&&0===this.audiosToLoad.length;(t&&0===this.fontsToLoad.length&&0===this.gFontsToLoad.length||t&&!0===e)&&(window.loadAssetsTimer&&clearTimeout(window.loadAssetsTimer),this.currentSlide?this.setSlideLoaded(this.currentSlide):this.setAllSlidesLoaded(),"function"==typeof this.callback&&this.callback())},this.preloadMedia=function(e,t,n,i){var r=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"image";if(!e)throw new Error("No media url");var a=this,s=e;n&&(s+=n);var l=window.bannerConfig.pdf;if(!window.assetsCache[s]||l){var c=new Image;"video"===o?(c=window.document.createElement("video"),this.videosToLoad.push(c)):"audio"===o?(c=new Audio,this.audiosToLoad.push(c)):this.imagesToLoad.push(c);var u=function(){"video"===o?a.videosToLoad.pop():"audio"===o?a.audiosToLoad.pop():a.imagesToLoad.pop(),a.resolveIfAssetsLoaded()},d=function(){l&&!["audio","video"].includes(o)?a.preloadResizedImageForPdf(e,c,t,window.bannerConfig.hqImages,u):u()},p=["audio","video"].includes(o)?"loadedmetadata":"load";c.addEventListener(p,d),c.addEventListener("error",(function(){u(),c.removeEventListener(p,d),r.src=""})),this.bannerConfig.preview&&i&&!t.resourceKey?this.setColorGroups(e,c,i):c.src=e,window.assetsCache[s]=c}},this.preloadElementAssets=function(e){var t;if("layer"===e.type)switch(e.layerType){case"shape":e.properties.backgroundColor&&"image"===e.properties.backgroundColor.type&&(t=u(e.properties.backgroundColor))&&this.preloadMedia(t,e.properties);break;case"image":if(this.bannerConfig.hqImages&&e.properties.hqUrl)t=e.properties.hqUrl;else if(e.properties.localUrl){var n=void 0!==window.bannerConfig.imgLocalPath?window.bannerConfig.imgLocalPath:"media/";t="".concat(n).concat(e.properties.localUrl),window.bannerConfig.embedUrl&&(t=this.bannerConfig.embedUrl+t)}else t=e.properties.url&&e.properties.url.includes("//")?e.properties.url:this.bannerConfig.photosUrl+e.properties.url;t&&this.preloadMedia(t,e.properties);break;case"svg":if(e.properties.localUrl){var i=void 0!==window.bannerConfig.imgLocalPath?window.bannerConfig.imgLocalPath:"media/";t="".concat(i).concat(e.properties.localUrl)}else t=e.properties.url?"".concat(window.bannerConfig.photosUrl).concat(e.properties.url):null;t&&this.preloadMedia(t,e.properties,e.properties.id,e.properties.colorGroups);break;case"text":var r=e.properties.config;if(r){var o=this;r.forEach((function(e){var t=e.children,n=e.style;n&&n.fontFamily&&(n.fontFamily||(n.fontFamily="Open Sans"),o.addFontToDOM(n)),t&&t.forEach((function(e){var t=e.style;t&&(t.fontFamily?(!t.fontType||t.fontType===o.fontTypes.GOOGLE||t.fontUrl||t.localUrl)&&o.addFontToDOM(t):t.fontWeight&&(t.fontFamily=n.fontFamily,t.fontType=n.fontType,t.fontPrefix=n.fontPrefix||null,o.addFontToDOM(t)))}))}))}else this.addFontToDOM(e.properties);break;case"button":e.properties.localUrl||this.addFontToDOM(e.properties.labelStyle);break;case"video":case"audio":if(e.properties.localUrl){var a=void 0!==window.bannerConfig.imgLocalPath?window.bannerConfig.imgLocalPath:"media/";t="".concat(a).concat(e.properties.localUrl),window.bannerConfig.embedUrl&&(t=window.bannerConfig.embedUrl+t)}else t=e.properties.url&&e.properties.url.includes("//")?e.properties.url:this.bannerConfig.photosUrl+e.properties.url;t&&this.preloadMedia(t,e.properties,e.properties.id,null,e.layerType)}else if("slide"===e.type)for(var s=0;s<e.elements.length;s++)this.preloadElementAssets(e.elements[s])}}var t,n,r;return t=e,(n=[{key:"assets",value:function(e,t,n,i){if(this.bannerConfig=n,this.callback=i,this.currentSlide=t.displayData?t.displayData:t,this.getSlideLoaded(this.currentSlide))this.resolveIfAssetsLoaded();else{var r=[this.currentSlide];if(null!==e){if(e.properties.backgroundColor&&"image"===e.properties.backgroundColor.type){var o=u(e.properties.backgroundColor);o&&this.preloadMedia(o,e.properties)}var a=e.elements.filter((function(e){return"layer"===e.type}));r=r.concat(a)}for(var s=0;s<r.length;s++)this.preloadElementAssets(r[s]);this.loadGFonts(),this.resolveIfAssetsLoaded()}}}])&&i(t.prototype,n),r&&i(t,r),e}(),b=function(e){var t,n=parseFloat(e,10),i=e.match(/m?s/);switch(i&&(i=i[0]),i){case"s":t=1e3*n;break;case"ms":t=n;break;default:t=0}return t};var g=function(e){e.id||(e.id="e_".concat(r.domUniqueId++))},v={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInCubic:"cubic-bezier(.55,.055,.675,.19)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInStrong:"cubic-bezier(.97,.09,.79,.21)",easeOutStrong:"cubic-bezier(.21,.79,.09,.97)",easeInOutStrong:"cubic-bezier(.78,.03,.24,.99)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},m={},w=function(e){return!!m[e]},k=function(e,t){if(!m[e]){for(var n,i,r="@keyframes ".concat(e," {"),o="@-webkit-keyframes ".concat(e," {"),a=0;n=t[a];a++)r+=i=S(n.percent,n.props),o+=i;var s=(r+="}")+(o+="}"),l=document.createElement("style");l.type="text/css",l.styleSheet?l.styleSheet.cssText=s:l.innerHTML=s,document.getElementsByTagName("head")[0].appendChild(l),m[e]=!0}},S=function(e,t){for(var n,i,r,o="".concat(e,"% {"),a=Object.keys(t),s=0;n=a[s];s++)o+=(i=n,r=t[n],"".concat(i,":").concat(r,";-webkit-").concat(i,":").concat(r,";"));return o+="}"};function C(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var O=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.delay=n,this.remaining=n,this.callback=t,this.id=0,this.isPlaying=!1,this.resume()}var t,n,i;return t=e,(n=[{key:"pause",value:function(){this.isPlaying&&(window.clearTimeout(this.id),this.remaining-=Date.now()-this.start,this.isPlaying=!1)}},{key:"resume",value:function(){this.isPlaying||this.remaining<0||(this.start=Date.now(),window.clearTimeout(this.id),this.id=window.setTimeout(this.callback,this.remaining),this.isPlaying=!0)}},{key:"destroy",value:function(){window.clearTimeout(this.id),this.callback=null,this.remaining=null,this.start=null,this.isPlaying=!1}}])&&C(t.prototype,n),i&&C(t,i),e}();function A(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"pause",value:function(){for(var t in e.timers)e.timers.hasOwnProperty(t)&&e.timers[t].pause();e.setAnimationState("paused")}},{key:"resume",value:function(){for(var t in e.timers)e.timers.hasOwnProperty(t)&&e.timers[t].resume();e.setAnimationState("running")}},{key:"init",value:function(){if(window.enablePauseAnimOnVisibilityChange){var t=null;document.addEventListener("visibilitychange",(function(){document.hidden?(clearTimeout(t),t=setTimeout((function(){e.pause()}),50)):(clearTimeout(t),t=setTimeout((function(){e.resume()}),50))}),!1)}}},{key:"setAnimationState",value:function(t){for(var n in e.animations)if(e.animations.hasOwnProperty(n)){var i=e.animations[n],r=i.element,o=i.delay,a=i.animation,s=i.startTime;if(r.style.animationPlayState=t,r.style.webkitAnimationPlayState=t,"paused"===t){var l=b(o),c=new Date-s;if(l>0&&c<l){var u="".concat(l-c,"ms");r.style.animationDelay=u,r.style.webkitAnimationDelay=u}a.indexOf("buildIn")>=0&&l>0&&c<l&&(r.style.display="none")}else r.style.display=""}}}],(n=null)&&A(t.prototype,n),i&&A(t,i),e}();E(T,"timers",{}),E(T,"animations",{}),E(T,"timerIndex",0);var P=function(e,t){var n=T.timerIndex++;return T.timers[n]=new O(e,t),n},x=function(e){var t=T.timers[e];t&&(delete T.timers[e],t.destroy())},I=function(e,t){!function(e,t){e.offsetWidth,e.style.animation=t,e.style.webkitAnimation=t,e.style.animationPlayState=window.BS_PLAYING_STATE||"running",e.style.webkitAnimationPlayState=window.BS_PLAYING_STATE||"running"}(e,t),g(e);var n=e.style.animationDelay,i=new Date;t?T.animations[e.id]={element:e,delay:n,animation:t,startTime:i}:delete T.animations[e.id]},_="instant",L="alpha-words",B="blur-words",U="fadeAudio",j="blink",D="jello",M="bounce",F="vibrate",z="flicker",R="pulsate",N="shake",H="video",G="audio";function W(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"clearAll",value:function(e){e&&e.firstChild&&I(e.firstChild,"")}},{key:"clearWordsTimeout",value:function(e,t){for(var n=0;n<t.length;n++)I(t[n],"")}},{key:"getAnimationDuration",value:function(e,t){return Number("buildMid"===t?e.motionTime:e.duration)||1e-4}},{key:"getAnimationIterationCount",value:function(e,t){return"buildMid"===t?Math.ceil(e.duration/e.motionTime):1}},{key:"animate",value:function(e,t,n,i){var r=e,o=t;if("none"!==o.type){var a=i||0;o.zoom=o.zoom||1;var s=o.variation,l=void 0===s?null:s,c="both",u=o.type,d=!0;switch(o.type){case _:case H:case G:case U:d=!1;break;case L:case B:u="words";break;case j:case D:case M:case F:case z:c="none";break;case R:switch(c="none",l){case"heartbeat":u="pulsateHeartbeat";break;case"backward":case"forward":u="pulsate";break;case"ping":u="pulsatePing"}break;case N:switch(c="none",l){case"leftRight":case"top":case"left":case"right":u="shakeRotate";break;case"horizontal":case"vertical":u="shakeTranslate"}}var p=window["BS_".concat(u)];if(!d||p||null===u){if("rotate"===o.type||"flip"===o.type){var f="".concat(Math.round(.7*r.offsetWidth+.7*r.offsetHeight),"px");r.style.perspective=f,r.style.webkitPerspective=f}if(r&&p){u=p(o,n,r,a);var h=this.getAnimationDuration(o,n),y=this.getAnimationIterationCount(o,n),b="".concat(u," ").concat(h,"s ").concat(function(e){if("Linear"===e.tween||"linear"===e.ease)return"linear";var t="ease";switch(e.ease){default:t+="Out";break;case"easeIn":t+="In";break;case"easeInOut":t+="InOut"}return t+=e.tween,v[t]||"linear"}(o)," ").concat((g=o.delay+a,m=3,parseFloat(g.toFixed(m))),"s ").concat(y," ").concat(c);I(r.firstChild&&1===r.firstChild.nodeType&&!r.classList.contains("word")?r.firstChild:r,b)}var g,m,w=Number(o.duration)+Number(o.delay)+a;P((function(){o.onAnimationEnd&&o.onAnimationEnd()}),Math.max(1e3*w,0))}else console.error("Error ".concat(u," for build type ").concat(o.type," not found"))}else o.onAnimationEnd&&o.onAnimationEnd()}}],(n=null)&&W(t.prototype,n),i&&W(t,i),e}();function X(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"apply",value:function(t){t.on=e.prototype.on,t.off=e.prototype.off,t.trigger=e.prototype.trigger}},{key:"on",value:function(e,t){void 0===this._listeners&&(this._listeners={});var n,i,r=this._listeners;for(e=e.split(" "),i=0;n=e[i];i++)r[n]=r[n]||[],r[n].includes(t)||r[n].push(t)}},{key:"off",value:function(e,t){if(void 0!==this._listeners){var n=this._listeners[e];if(void 0!==n){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}}}},{key:"trigger",value:function(e,t){if(void 0!==this._listeners){var n=this._listeners[e];if(void 0!==n){var i={};i.target=this,i.type=e,i.data=t;for(var r=n.length,o=0;o<r;o++)n[o].call(this,i)}}}}])&&X(t.prototype,n),i&&X(t,i),e}(),Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"clickTag",t=window.location.search.substring(1),n=t.split("".concat(e,"="));if(!n[1])return"";var i=n[1].replace(/&.+$/,"");try{i=decodeURIComponent(i)}catch(e){return""}var r=i.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,8}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);return null==r?"":i},V=function(e){var t="2x",n=e.lastIndexOf(".");return e.lastIndexOf("/")>n?e+t:(-1===n&&(n=e.length),[e.slice(0,n),t,e.slice(n)].join(""))};function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function J(e,t){return!t||"object"!==$(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var te=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=J(this,Z(t).call(this))).container=null,e.displayContainer=null,e.properties=null,e.displayData=null,e.buildTimeouts=[],e}var n,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(t,e),n=t,r=[{key:"parseProps",value:function(e){for(var t,n=["buildIn","buildOut","transition"],i=0;t=n[i];i++)if(e[t])switch(e[t].tween){case"Bounce":case"Elastic":"scale"!==e[t].type&&"slide"!==e[t].type||(e[t].type+=e[t].tween,"Elastic"===e[t].tween&&(e[t].ease="easeOut")),e[t].tween=""}return e}}],(i=[{key:"init",value:function(e){return this.displayData=e,this.displayData.properties=t.parseProps(this.displayData.properties),this.trigger("init"),this}},{key:"render",value:function(){}},{key:"reset",value:function(){var e,t;for(Y.clearAll(this.container),e=0;t=this.buildTimeouts[e];e++)x(t);for(this.buildTimeouts=[],this.transform("none"),this.webkitTransform("translate3d(0,0,0)"),this.setStyle(this.container,"x,y,width,height","px"),this.container.style.opacity="1",this.container.style.display="",this.container.style.filter="",this.container.style["-webkit-filter"]="",this.container.style.animation="",this.container.style["-webkit-animation"]="",e=0;t=this.buildTimeouts[e];e++)x(t);if(this.buildTimeouts=[],this.displayContainer){var n=void 0!==this.properties.opacity?this.properties.opacity:100;this.displayContainer.style.opacity=n/100}}},{key:"createMainContainers",value:function(e,t,n,i){var r;if(this.properties&&this.properties.actions&&this.slide&&this.slide.banner.config.pdf&&(r=this.properties.actions.find((function(e){return"click"===e.event&&"gotoURL"===e.type&&e.url}))),this.container=this.createElement("div",e),this.properties&&(this.properties.text||this.properties.buttonLabel)){var o="none"!==this.properties.buildIn.type,a=this.properties.buildMid&&"none"!==this.properties.buildMid.type,s="none"!==this.properties.buildOut.type;(o||a||s)&&(this.container.style.perspective="1px")}this.effHelper=this.createElement("div","eff-helper"),r&&(this.actionContainer=this.createElement("a","action-container"),this.actionContainer.href=r.url,this.actionContainer.target=r.target||"_blank",this.actionContainer.style.cursor=r.useHandCursor?"":"auto"),this.displayContainer=this.createElement(n||"div",t,void 0,void 0,i),this.container.appendChild(this.effHelper),r?(this.effHelper.appendChild(this.actionContainer),this.actionContainer.appendChild(this.displayContainer)):this.effHelper.appendChild(this.displayContainer)}},{key:"applyActions",value:function(e,t){var n=this;if(!e||!t)return!1;if("none"===e.type)return!1;var i="pointer";void 0!==e.useHandCursor&&!1===e.useHandCursor&&(i=""),t.style.cursor=i,t.addEventListener(e.event,(function(t){if(t.clickFlag)return t.clickFlag=!1,!1;if(e.disabled)return!1;if(t.clickFlag=this,"gotoSlide"===e.type){var i=n.slide.getBuildOutTime();i&&(e.disabled=!0,P((function(){e.disabled=!1}),i)),null===e.slideOrUrl&&(e.slideOrUrl="next");var r=!!e.slideOrUrl,o=n.slide.banner.currentSlide;switch(e.slideOrUrl){case"first":n.slide.banner.preload.assets(null,n.slide.getFirstSlide(),n.slide.banner.config),o.buildOut(n.slide.getFirstSlide(),r);break;case"last":n.slide.banner.preload.assets(null,n.slide.getLastSlide(),n.slide.banner.config),o.buildOut(n.slide.getLastSlide(),r);break;case"next":n.slide.banner.preload.assets(null,n.slide.getNextSlide(),n.slide.banner.config),o.buildOut(n.slide.getNextSlide(),r);break;case"prev":n.slide.banner.preload.assets(null,n.slide.getPrevSlide(),n.slide.banner.config),o.buildOut(n.slide.getPrevSlide(),r);break;default:n.slide.banner.preload.assets(null,o.getSlideByHashOrId(e.slideOrUrl),n.slide.banner.config),o.buildOut(o.getSlideByHashOrId(e.slideOrUrl),r)}}else{var a=e.slideOrUrl||window.bannerURL,s=String(a).indexOf("bsClickTAG");if(window.bsClickFunc){var l=a,c=null;return(String(a).indexOf("bsClickTAG")>=0||String(a).indexOf("clickTag")>=0)&&(l=window[a],c=a),l&&l.indexOf("bsClickTAG")>=0&&(l=null),window.bsClickFunc(l,e.target,c),!1}if(-1!==s||0===String(a).indexOf("clickTag")){var u=-1!==s?a.substr(s):a;(a="function"==typeof window[u]?window[u]():window[u])||-1===s||(a=Q())}else if(n.hash||!window.bannerConfig.pdf){if(!a&&!1===window.goToURLWithoutBSURL)return!1;var d=Q()||window.clickTag;d&&(a=void 0===window.clickTag&&d!==a&&-1===d.indexOf(a)&&d.indexOf(-1===encodeURIComponent(a)&&a&&-1===a.indexOf(d))?d+encodeURIComponent(a):d)}a=f(a),window.bsOpenURL(a,e.target)}}))}},{key:"createElement",value:function(e,t,n,i,r){var o=r||window.document.createElement(e);return o.setAttribute("class",t),!1!==n&&(i||this.container)&&(i||this.container).appendChild(o),g(o),o}},{key:"setStyle",value:function(e,t,n){n||(n="");var i={x:"left",y:"top",labelOffsetX:"margin-left",labelOffsetY:"margin-top",lineHeight:"line-height"};for(var r in t=t.split(","))if(t.hasOwnProperty(r)){var o=i[t[r]]||t[r],a=this.properties[t[r]];if("width"===o||"height"===o){var s=this.properties.scale||1;e.style[o]=a*s+n}else e.style[o]="left"===o||"right"===o?Math.round(a)+n:a+n}return this}},{key:"getContainer",value:function(){return this.container}},{key:"show",value:function(){return this.container.style.display="",this}},{key:"hide",value:function(){return this.container.style.display="none",this}},{key:"hasClass",value:function(e,t){return!!e&&new RegExp("(\\s|^)".concat(t,"(\\s|$)")).test(e.className)}},{key:"removeClass",value:function(e,t){return this.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(\\s|^)".concat(t,"(\\s|$)"))," ").replace(/^\s+|\s+$/g,"")),this}},{key:"addClass",value:function(e,t){return e?(this.hasClass(e,t)||(e.className+=(e.className?" ":"")+t),this):this}},{key:"toggleClass",value:function(e,t){return e?(this.hasClass(e,t)?this.removeClass(e,t):this.addClass(e,t),this):this}},{key:"applyBackground",value:function(e,t,n){var i=c(t);for(var r in i)switch(r){default:e.style[r]=i[r];break;case"background-image":if("lgrad"===t.type||"rgrad"===t.type)for(var o=0;o<i[r].length;o++)e.style.backgroundImage=i[r][o];else e.style[r]=i[r];break;case"background":for(o=0;o<i[r].length;o++)e.style.background=i[r][o];break;case"--retina-src":n&&this.properties.retinaReady&&(e.classList.add("retina"),e.style.setProperty(r,'url("'.concat(V(i[r]),'")')))}t&&t.type&&"image"===t.type&&("userCrop"!==t.scaleMode&&function(e,t){if(!e||!t)return s(e,"background"),!1;var n=["background","background-crop","background-stretch","background-mask","background-aspect","background-tile"],i="".concat(n[0],"-").concat(t.toLowerCase());for(var r in n)l(e,n[r]);s(e,n[0]),s(e,i)}(e,t.scaleMode),function(e,t){var n=!1,i=u(t);for(var r in t)switch(r){case"scaleMode":case"verticalAlign":case"horizontalAlign":case"contentScale":n=!0}if(n){e.style.backgroundSize="";var o=t.originalWidth;if(o)"tile"===t.scaleMode&&(e.style.backgroundSize=o?"".concat(t.contentScale*o/100,"px"):"".concat(t.contentScale,"%"),e.style.visibility="visible");else{var a=new Image;a.onload=function(){o!==a.width&&(o=a.width),e.style.backgroundSize="","tile"===t.scaleMode&&(e.style.backgroundSize=o?"".concat(t.contentScale*o/100,"px"):"".concat(t.contentScale,"%"),e.style.visibility="visible")},a.src=i}}}(e,t))}},{key:"applyBoxShadow",value:function(e,t){d(e,function(e){if(!e)return null;var t={"-webkit-box-shadow":"","box-shadow":""};return!0!==e.useShadow&&"true"!==e.useShadow||(t.boxShadow="".concat(e.hShadow,"px ").concat(e.vShadow,"px ").concat(e.blur,"px ").concat(e.spread,"px ").concat(e.color),t["-webkit-box-shadow"]=t.boxShadow),t}(t))}},{key:"applyFilters",value:function(e,t,n,i){d(e,function(e,t,n){var i={"-webkit-filter":"",filter:""};return!e||!0!==e.useAdjustColor&&"true"!==e.useAdjustColor||(i.filter+="brightness(".concat((parseInt(e.brightness)+100)/100,") "),i.filter+="contrast(".concat((parseInt(e.contrast)+100)/100,") "),i.filter+="saturate(".concat((parseInt(e.saturate)+100)/100,") "),i.filter+="hue-rotate(".concat(e.hue,"deg)")),!t||!0!==t.useBlur&&"true"!==t.useBlur||(i.filter+="blur(".concat(t.pixels,"px)")),!n||!0!==n.useShadow&&"true"!==n.useShadow||(i.filter+="drop-shadow(".concat(n.hShadow,"px ").concat(n.vShadow,"px ").concat(n.blur,"px ").concat(n.color,")")),i["-webkit-filter"]=i.filter,i}(t,n,i))}},{key:"getFlipString",value:function(e){if(!e)return"";var t="both"===e||"vertical"===e?"-1":"1";return"scale(".concat("both"===e||"horizontal"===e?"-1":"1",", ").concat(t,")")}},{key:"getBRadius",value:function(){var e=this.properties,t=e.border||{},n=0;return"rectangle"===e.type&&(void 0!==t.radius?n=t.radius:void 0!==e.bradius&&(n=e.bradius)),n}},{key:"getBorderString",value:function(e){var t=e||this.properties.border||{};return void 0===t.weight||void 0===t.color?"":"".concat(t.weight,"px solid ").concat(t.color)}},{key:"getAnimationEl",value:function(){return this.container}},{key:"setBuildMidAnimation",value:function(){var e=this;function t(){e.isHover=!0,Y.animate(a,l,"buildMid")}function n(){e.isHover=!1}function i(){e.isHover||e.reset()}var r=1!==e.slide.banner.properties.loopCount,o=this.displayData.properties,a=this.getAnimationEl(),s=o.buildIn,l=o.buildMid,c=o.buildOut,u="none"===c.type,d=l.delay,p=l.duration;function f(){c&&!u&&(l.onAnimationEnd=function(){e.setBuildOutAnimation()})}if(!e.properties.showOnAllSlides){var h=e.slide.displayData.properties.duration,y=e.slide.displayData.properties.stopSlide,b="none"!==s.type?s.delay+s.duration:0,g=l&&"none"!==l.type?l.delay+l.duration:0,v=b+g+c.delay+c.duration;("instant"===c.type&&v>h||c&&!y&&b>h)&&(c=null),r&&l&&"none"!==l.type&&b+g>h&&(l.duration=parseFloat((h-b-l.delay).toFixed(1)))}"hover"!==l.startEnd?(Y.animate(a,l,"buildMid"),e.buildTimeouts.push(P((function(){(r&&p===l.duration||!r)&&(l.delay=0,l.duration=0,f(),Y.animate(a,l,"buildMid")),l.delay=d,l.duration=p}),1e3*(l.delay+l.duration)))):(e.isHover=!1,c&&!u&&(l.onAnimationEnd=null),P((function(){l.delay=0,a.addEventListener("mouseenter",t),a.addEventListener("animationiteration",i),a.addEventListener("mouseleave",n),P((function(){a.removeEventListener("mouseenter",t),a.removeEventListener("animationiteration",i),a.removeEventListener("mouseleave",n),(r&&p===l.duration||!r&&c&&!u)&&(l.delay=0,l.duration=0,f(),Y.animate(a,l,"buildMid")),l.delay=d,l.duration=p}),1e3*l.duration)}),1e3*l.delay))}},{key:"setBuildOutAnimation",value:function(){var e=this.getAnimationEl(),t=this.displayData.properties.buildOut,n=this;n.buildTimeouts.push(P((function(){n.trigger("buildOutStart")}),1e3*t.delay)),Y.animate(e,t,"buildOut"),n.buildTimeouts.push(P((function(){n.trigger("buildOutEnd"),e.style.display="none"}),1e3*(t.duration+t.delay)))}},{key:"playAnimation",value:function(e){var t=this,n=this.getAnimationEl(),i=this.displayData.properties,r=i.buildIn,o=i.buildMid,a=i.buildOut;if(e=e||0,!this.properties.showOnAllSlides){var s=this.slide.displayData.properties.duration,l=this.slide.displayData.properties.stopSlide,c="none"!==r.type?r.delay+r.duration:0,u=c+(o&&"none"!==o.type?o.delay+o.duration:0)+a.delay+a.duration;("instant"===a.type&&u>s||a&&!l&&c>s)&&(a=null)}r&&"none"!==r.type?(this.buildTimeouts.push(P((function(){t.trigger("buildInStart")}),1e3*r.delay)),"instant"===r.type&&r.delay>0&&(n.style.display="none",this.buildTimeouts.push(P((function(){n.style.display=""}),1e3*(r.delay+e)))),r.onAnimationEnd=function(){o&&"none"!==o.type?t.setBuildMidAnimation():a&&"none"!==a.type&&t.setBuildOutAnimation()},Y.animate(n,r,"buildIn",e),this.buildTimeouts.push(P((function(){t.trigger("buildInEnd")}),1e3*(r.duration+r.delay+e)))):o&&"none"!==o.type?t.setBuildMidAnimation():a&&"none"!==a.type&&t.setBuildOutAnimation()}},{key:"transform",value:function(e,t){t||(t=this.container),t.style["-webkit-transform"]=e,t.style["-o-transform"]=e,t.style["-ms-transform"]=e,t.style["-moz-transform"]=e,t.style.transform=e}},{key:"webkitTransform",value:function(e,t){t||(t=this.container),t.style["-webkit-transform"]=e}},{key:"createActionProperties",value:function(e){var t=e||this.properties&&this.properties.actions&&this.properties.actions[0];if(!t)return!1;var n="";return"gotoURL"===t.type&&(n=t.url),{event:t.event,slideOrUrl:"gotoSlide"===t.type?t.slide:n,type:t.type,target:t.target,useHandCursor:t.useHandCursor}}},{key:"applyExtraPropertiesForGradients",value:function(e){if(this.properties.backgroundColor&&"string"!=typeof this.properties.backgroundColor){var t=this.properties.backgroundColor.type,n=this.properties.border?this.properties.border.weight:0;if("lgrad"===t||"rgrad"===t){var i="-".concat(n,"px"),r="calc(100% + ".concat(2*n,"px)");d(e,{backgroundPosition:"".concat(i," ").concat(i),backgroundSize:"".concat(r," ").concat(r)})}}}},{key:"getCropBackgroundPosition",value:function(e){var t=e.cropData.x,n=e.cropData.y,i=e.width,r=e.height,o=e.border?e.border.weight:0,a=t-o,s=n-o;return"horizontal"!==e.flip&&"both"!==e.flip||(a=i-(t+e.cropData.width)-o),"vertical"!==e.flip&&"both"!==e.flip||(s=r-(n+e.cropData.height)-o),{x:a,y:s}}}])&&K(n.prototype,i),r&&K(n,r),t}(q);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function re(e,t){return!t||"object"!==ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oe(e,t,n){return(oe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ae(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var le=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=re(this,ae(t).call(this))).banner=null,e.rendered=!1,e._buildOutTimeout=null,e.container=null,e.elements=[],e.LOOP_COUNT_FOREVER=0,e}var n,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(t,e),n=t,(i=[{key:"init",value:function(e,n){if(this.isOverflowSlide)this.container=n,this.displayContainer=n,this.resetElements();else{this.createMainContainers("slide","slide-inner"),n.appendChild(this.container);var i=e.properties;this.ah=e.ah,!this.ah&&i&&(this.ah=i.id),i.duration=parseFloat(i.duration),i.duration<.1&&(i.duration=.1),i.transition=i.transition||{type:"none",delay:0,duration:.1};var r=i.transition;this.parseTransition(r),this.applyBackground(this.displayContainer,i.backgroundColor),this.reset()}return this.banner.statsPresent&&this.banner.stats.trackEvent(this.container,this),oe(ae(t.prototype),"init",this).call(this,e)}},{key:"parseTransition",value:function(e){switch(e.duration=parseFloat(e.duration)||0,e.delay=parseFloat(e.delay)||0,e.type){case"slide":case"slideBounce":case"slideElastic":if(!parseInt(e.slideOffset))switch(e.direction){case"r2l":case"l2r":e.slideOffset=this.banner.getWidth();break;case"t2b":case"b2t":e.slideOffset=this.banner.getHeight()}break;case"flip":"cross"===e.crosstype&&(e.deg=180)}}},{key:"isFirstSlide",value:function(){return 0===this.banner.slides.indexOf(this)}},{key:"isLastSlide",value:function(){return this.banner.slides.indexOf(this)===this.banner.slides.length-1}},{key:"reset",value:function(){Y.clearAll(this.container);var e=this.displayContainer.style;e.zIndex=0,e.width="100%",e.height="100%",e.top="0",e.left="0",e.filter="",e["-webkit-filter"]="",e.animation="",e["-webkit-animation"]="",this.transform("none"),this.resetElements()}},{key:"resetElements",value:function(){for(var e=0;e<this.elements.length;e++)this.elements[e].reset()}},{key:"play",value:function(e,t){this.banner.lastSlide=this.banner.currentSlide,this.banner.currentSlide=this,t||this.banner.trigger("changeSlide"),this.rendered?this.reset():(this.banner.preload.assets(null,this.getNextSlide(),this.banner.config),this.render()),this.container.style.opacity=1,this.playSlideAnimation(e)}},{key:"render",value:function(){var e,t,n=this.displayData.elements;for(t=0;t<n.length;t++)(e=this.renderElement(n[t]))&&this.elements.push(e);if(this.on("buildInStart buildInEnd buildOutStart buildOutEnd",(function(e){for(var t=0;t<this.elements.length;t++){var n="slide".concat(e.type.charAt(0).toUpperCase()).concat(e.type.substr(1));this.elements[t].trigger(n,this)}})),this.isOverflowSlide){if(!this.banner.noAnimation)for(t=0;t<this.elements.length;t++)this.elements[t].playAnimation(0);this.trigger("buildInStart"),this.trigger("buildInEnd")}else this.createElement("div","slide-hover",!0,this.container);this.rendered=!0}},{key:"getDurationToStartSlide",value:function(){var e=this;return this.banner.slides.reduce((function(t,n,i){var r;return i<e.banner.startSlide?(r="none"!==n.displayData.properties.transition.type?n.displayData.properties.transition.duration:0,t+n.displayData.properties.duration+r):t}),0)}},{key:"renderElement",value:function(e){var t,n=e.properties;n.buildIn=n.buildIn||{type:"none",delay:0,duration:0},n.buildOut=n.buildOut||{type:"none",delay:0,duration:0};var i=n.buildIn,r=n.buildOut;function o(e){e.duration=parseFloat(e.duration)||0,e.delay=parseFloat(e.delay)||0}if(o(i),o(r),this.isOverflowSlide){var a=this.getDurationToStartSlide(),s=i.delay-a;s<0&&["audio","video"].includes(e.layerType)&&(n.secondsBeforeSlide=s),i.duration+s<0?(i.type="none",r.delay-=a-i.duration-i.delay):i.delay=s}var l="".concat(e.layerType.charAt(0).toUpperCase()+e.layerType.substr(1),"Display"),c=window["BS_".concat(l)];if(!c)return console.error("Error ".concat(l," not found")),null;var u=window.bannerConfig,d=u.printScreen,p=u.video;if(t=["ImageDisplay","ShapeDisplay","EmbedDisplay"].includes(l)?new c(this.banner.properties.retina):"audio"===e.layerType&&(d||p)?null:new c){t.slide=this;var f=t.init(e).getContainer();this.displayContainer.appendChild(f),t.render(),this.isOverflowSlide&&(t.container.style.zIndex=10,t.container.style.webkitTransform="translate3d(0, 0, 0)")}return t}},{key:"getNextSlide",value:function(e){e||(e=this.banner.currentSlide);var t=this.banner.slides,n=t.indexOf(e);return n+1>=t.length?this.banner.slides[0]:this.banner.slides[n+1]}},{key:"getPrevSlide",value:function(e){e||(e=this.banner.currentSlide);var t=this.banner.slides.indexOf(e);return t-1<0?this.banner.slides[this.banner.slides.length-1]:this.banner.slides[t-1]}},{key:"getFirstSlide",value:function(){return this.banner.slides[0]}},{key:"getLastSlide",value:function(){return this.banner.slides[this.banner.slides.length-1]}},{key:"playSlideAnimation",value:function(e){x(this._buildOutTimeout);var t,n,i=this.getAnimationEl(),r=this,o=this.displayData.properties,a=this.banner.lastSlide?this.banner.lastSlide.container:null,s=this.banner.slides.length,l=0;for(t=0;t<this.banner.slides.length;t++)(n=this.banner.slides[t].container).style.zIndex=0,n.style.display="none";this.container.style.display="",this.container.style.zIndex="1",this.trigger("buildInStart"),e&&"none"!==e.type&&!this.banner.noAnimation&&s>1?(this.addClass(this.container,"buildin"),l=parseFloat(e.duration)||0,a&&(a.style.display=""),"hide"!==e.crosstype?Y.animate(i,e,"buildIn"):a&&(a.style.zIndex="2"),P((function(){r.removeClass(r.container,"buildin"),r.trigger("buildInEnd")}),1e3*e.duration)):this.trigger("buildInEnd");var c=!this.banner.properties.loopCount||this.banner.properties.loopCount===this.LOOP_COUNT_FOREVER,u=this.banner.loopsPlayed>=this.banner.properties.loopCount;if(!this.isLastSlide()||u||c||this.banner.loopsPlayed++,o.stopSlide||this.banner.showOnlyOneSlide||!c&&u&&this.isLastSlide()||(this._buildOutTimeout=P((function(){r.buildOut()}),1e3*(l+o.duration))),!this.banner.noAnimation)for(t=0;t<this.elements.length;t++)this.elements[t].playAnimation(l)}},{key:"buildOut",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._buildOutTimeout&&x(this._buildOutTimeout);var n=this.banner.slides.length,i=this.displayData.properties.transition,r=this,o=r.banner.currentSlide.displayData.properties.stopSlide;r.trigger("buildOutStart");var a=null;if(i&&"none"!==i.type&&n>1){if(r.addClass(r.container,"buildout"),"show"!==i.crosstype){var s=p(i);Y.animate(this.getAnimationEl(),s,"buildOut")}a=P((function(){r.banner.currentSlide!==r&&(r.container.style.display="none"),r.removeClass(r.container,"buildout"),r.trigger("buildOutEnd")}),1e3*i.duration)}else r.trigger("buildOutEnd");e||(e=this.getNextSlide()),e===this&&a&&(x(a),r.removeClass(r.container,"buildout"),r.trigger("buildOutEnd")),o&&!t||e.play(p(i))}},{key:"getBuildOutTime",value:function(){var e=this.displayData.properties.transition;return e&&"none"!==e.type?1e3*e.duration:0}},{key:"getSlideByHashOrId",value:function(e){if(!e)return!1;for(var t=this.banner.slides,n=0;n<t.length;n++){var i=t[n].displayData.properties;if(e===t[n].ah||i&&e===i.id)return t[n]}return!1}}])&&ie(n.prototype,i),r&&ie(n,r),t}(te);function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function de(e,t){return!t||"object"!==ce(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var he=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=de(this,pe(t).call(this))).startSlide=0,e.overflowSlide=null,e.currentSlide=null,e.lastSlide=null,e}var n,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fe(e,t)}(t,e),n=t,(i=[{key:"init",value:function(e,t,n,i){var r=this;this.container=t,this.displayContainer=this.createElement("div","bs-helper"),this.displayContainer.setAttribute("style","z-index: -1;"),this.container.appendChild(this.displayContainer),this.properties=e.properties,this.resources=e.resources,this.config=n,this.startSlide=parseInt(n.startSlide)||0,this.noAnimation=Boolean(n.noAnimation)||!1,this.showOnlyOneSlide=Boolean(n.showOnlyOneSlide)||!1,this.preload=i,this.setStyle(this.container,"width,height","px"),this.setStyle(this.displayContainer,"width,height","px");var o=this.properties.backgroundColor||{};if((this.properties.width<2||this.properties.height<2)&&(o.useBorder=!1),o.useBorder&&(this.displayContainer.style.left="-1px",this.displayContainer.style.top="-1px",this.displayContainer.style.position="relative"),this.applyBackground(this.container,o,this.properties.retina),this.applyActions(this.createActionProperties(),this.container),te.prototype.init.call(this,e),this.initSlides(e.elements),this.container.addEventListener("click",(function(){r.statsPresent&&r.stats.launch()})),!1!==n.resize){var a=h(this.properties.width,this.properties.height);this.properties.transform="scale(".concat(a.proportion,")"),this.properties.transformOrigin="0 0 0",this.setStyle(this.container,"transform,transformOrigin"),window.addEventListener("resize",(function(){a=h(r.properties.width,r.properties.height),r.container.style.transform="scale(".concat(a.proportion,")")}))}}},{key:"initSlides",value:function(e){var t,n;this.slides=[];var i,r,o=[],a={properties:{},elements:[]};for(t=0;n=e[t];t++)"slide"===n.type?o.push(n):(n.properties&&(n.properties.showOnAllSlides=!0),a.elements.push(n));for(this.overflowSlide=new le,this.overflowSlide.isOverflowSlide=!0,this.overflowSlide.banner=this,this.overflowSlide.init(a,this.displayContainer),t=0;r=o[t];t++)(i=new le).banner=this,i.init(r,this.displayContainer),this.slides.push(i)}},{key:"getWidth",value:function(){return this.properties.width}},{key:"getHeight",value:function(){return this.properties.height}},{key:"play",value:function(){this.overflowSlide.render(),this.loopsPlayed=1,this.slides[this.startSlide]&&this.slides[this.startSlide].play(null,!0)}},{key:"createActionProperties",value:function(){var e={event:"click",slideOrUrl:"",type:"gotoURL",target:"_blank",useHandCursor:!0};if(!this.config.isCustomEmbed){var t=Q();if(!t&&this.properties.useAsClickTag&&((t=window.clickTag||window.clickTAG||this.config&&this.config.clickTag)||"clickTag"===this.properties.bannerUrl||(t=this.properties.bannerUrl,window.clickTag=t)),t)return e.slideOrUrl=f(t),e}var n=this.properties;return n&&(e.target=n.urlTarget,e.useHandCursor=n.useHandCursor),!!n&&!!n.bannerUrl&&(e.slideOrUrl=n.bannerUrl,e)}}])&&ue(n.prototype,i),r&&ue(n,r),t}(te);function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var we=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(e,t){return!t||"object"!==ye(t)&&"function"!=typeof t?ve(e):t}(this,ge(t).call(this)),T.init();var n=ve(e);return e.banner=new he,e.initBanner=function(){n.inited||(n.banner.init(n.json.banner,n.bannerContainer,n.config,n.preload),(!n.config.video&&!n.config.pdf||n.config.autoPlay||void 0===n.config.autoPlay)&&n.banner.play(),["mouseover","mouseout"].forEach((function(e){n.bannerContainer.addEventListener(e,(function(){document.querySelectorAll("video, audio").forEach((function(t){!function(e,t){var n="mouseover"===e&&function(e){for(var t=e.parentNode;!t.classList.contains("element");)t=t.parentNode;return"none"!==t.style.display}(t);if(t.dataset.soundOnHover===(!0).toString())try{t.volume=n?parseFloat(t.dataset.volume):0}catch(e){console.error(e)}}(e,t)}))}))})),n.inited=!0)},e}var n,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(t,e),n=t,(i=[{key:"init",value:function(e,t,n){var i=this,r=Math.round(t.banner.properties.width),o=Math.round(t.banner.properties.height);if(t.banner.properties.width=r,t.banner.properties.height=o,this.json=t,this.config=n,this.bannerContainer=e,this.config.video||this.config.pdf)this.initBanner();else{this.preload=new y;var a=parseInt(n.startSlide)||0,s=t.banner.elements.filter((function(e){return"slide"===e.type}));this.preload.assets(t.banner,s[a],n,this.initBanner),window.loadAssetsTimer=setTimeout((function(){i.preload.resolveIfAssetsLoaded(!0)}),3e3)}}},{key:"showWatermark",value:function(){window.BS_ShowWatermark&&window.BS_ShowWatermark()}}])&&be(n.prototype,i),r&&be(n,r),t}(q);function ke(e){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ce(e,t){return!t||"object"!==ke(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ae(e,t){return(Ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ee=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Ce(this,Oe(t).call(this))).retina=e,n}var n,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ae(e,t)}(t,e),n=t,(i=[{key:"init",value:function(e){this.triggerReadyOnRender=!1,this.properties=e.properties;var t,n=this.properties;this.createMainContainers("element","bs-image image-".concat(n.scaleMode)),this.transformContainer=this.createElement("div","transform-container"),this.displayContainer.parentNode.appendChild(this.transformContainer),n.maskImage?(this.maskContainer=this.createElement("div"),this.maskContainer.appendChild(this.displayContainer),this.transformContainer.appendChild(this.maskContainer)):this.transformContainer.appendChild(this.displayContainer);var i,r,o=window.bannerConfig;if(o.hqImages&&this.properties.hqUrl)t=this.properties.hqUrl;else if(this.properties.localUrl){var a=void 0!==o.imgLocalPath?o.imgLocalPath:"media/";t="".concat(a).concat(this.properties.localUrl),o.embedUrl&&(t=o.embedUrl+t)}else t=n.url&&n.url.includes("//")?n.url:o.photosUrl+n.url;switch(!0===this.retina&&this.properties.retinaReady&&(this.displayContainer.classList.add("retina"),this.displayContainer.style.setProperty("--retina-src",'url("'.concat(V(t),'")'))),t&&(this.displayContainer.style.backgroundImage="url(".concat(t,")")),this.applyFilters(n.maskImage?this.transformContainer:this.displayContainer,n.adjustColor,n.blur,n.dropShadow),n.verticalAlign){case"top":i="0";break;case"middle":i="50%";break;case"bottom":i="100%"}switch(n.horizontalAlign){case"left":r="0";break;case"center":r="50%";break;case"right":r="100%"}if(this.displayContainer.style.backgroundPosition="".concat(r," ").concat(i),"tile"===n.scaleMode){var s=n.contentScale,l=n.originalWidth?n.originalWidth:n.oWidth;this.displayContainer.style.backgroundSize="".concat(s/100*l,"px"),this.displayContainer.style.backgroundPositionX="".concat(n.contentOffsetX,"%"),this.displayContainer.style.backgroundPositionY="".concat(n.contentOffsetY,"%")}else if("userCrop"===n.scaleMode&&n.cropData){var c=n.cropData.width,u=n.cropData.height,p=this.getCropBackgroundPosition(n);this.displayContainer.style.backgroundSize="".concat(c,"px ").concat(u,"px"),this.displayContainer.style.backgroundPositionX="".concat(p.x,"px"),this.displayContainer.style.backgroundPositionY="".concat(p.y,"px"),this.displayContainer.style.backgroundRepeat="no-repeat"}this.transformContainer.style.height="100%",this.transformContainer.style.width="100%";var f=this.getFlipString(n.flip);return this.transform("translateZ(0) rotate(".concat(n.rotation,"deg) ").concat(f),this.transformContainer),this.reset(),n.maskImage&&(this.transformContainer.style.opacity=this.displayContainer.style.opacity,this.displayContainer.style.removeProperty("opacity"),window.bannerConfig.pdf&&(this.maskContainer.style.border="1px solid transparent"),this.maskContainer.style.width="100%",this.maskContainer.style.height="100%",d(this.maskContainer,function(e){if(!e)return{};var t='url("data:image/svg+xml;charset=UTF-8,'.concat(encodeURIComponent(e),'")');return{maskImage:t,WebkitMaskImage:t,maskRepeat:"no-repeat",WebkitMaskRepeat:"no-repeat",maskPosition:"center",WebkitMaskPosition:"center",maskSize:"100% 100%",WebkitMaskSize:"100% 100%",maskOrigin:"content-box",WebkitMaskOrigin:"content-box"}}(n.maskImage))),this.slide.banner.statsPresent&&this.slide.banner.stats.trackEvent(this.displayContainer,this),this.applyActions(this.createActionProperties(),this.displayContainer),te.prototype.init.call(this,e)}}])&&Se(n.prototype,i),r&&Se(n,r),t}(te);function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function xe(e,t){return!t||"object"!==Te(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ie(e){return(Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Le=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=xe(this,Ie(t).call(this))).retina=e,n}var n,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}(t,e),n=t,(i=[{key:"init",value:function(e){var t=e.properties;if(this.properties=t,this.createMainContainers("element","shape ".concat(t.type)),-1!=o()){var n=this.createElement("img","fakeImage");n.src="",this.displayContainer.appendChild(n)}"line"===t.type&&(t.type="rectangle",t.width=t.len,t.height=t.thick,delete t.len,delete t.thick,this.properties=t),this.container.style.width="".concat(t.width,"px"),this.container.style.height="".concat(t.height,"px");var i=this.getBRadius();if(i&&(this.displayContainer.style.borderRadius="".concat(i,"px")),this.displayContainer.style.border=this.getBorderString(),this.applyBackground(this.displayContainer,t.backgroundColor,this.retina),this.applyExtraPropertiesForGradients(this.displayContainer),t.backgroundColor&&t.backgroundColor.type&&"image"===t.backgroundColor.type&&"userCrop"===t.backgroundColor.scaleMode&&t.cropData){var r=t.cropData.width,a=t.cropData.height,s=this.getCropBackgroundPosition(t);this.displayContainer.style.backgroundSize="".concat(r,"px ").concat(a,"px"),this.displayContainer.style.backgroundPositionX="".concat(s.x,"px"),this.displayContainer.style.backgroundPositionY="".concat(s.y,"px"),this.displayContainer.style.backgroundRepeat="no-repeat"}this.displayData=e;var l=this.getFlipString(t.flip);return this.transform("rotate(".concat(this.properties.rotation,"deg) ").concat(l),this.displayContainer),this.applyFilters(this.displayContainer,!1,this.properties.blur,this.properties.dropShadow),this.reset(),this.slide.banner.statsPresent&&this.slide.banner.stats.trackEvent(this.displayContainer,this),this.applyActions(this.createActionProperties(),this.displayContainer),te.prototype.init.call(this,e)}}])&&Pe(n.prototype,i),r&&Pe(n,r),t}(te);function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ue(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function je(e,t){return!t||"object"!==Be(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function De(e,t,n){return(De="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Me(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ze=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),je(this,Me(t).apply(this,arguments))}var n,i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}(t,e),n=t,(i=[{key:"init",value:function(e){var n,i;if(this.properties=e.properties,this.createMainContainers("element","svg"),this.properties.resourceKey&&this.slide.banner.displayData.resources){var r=this.slide.banner.displayData.resources[this.properties.resourceKey],o=r&&function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.innerHTML=e;for(var i=n.querySelectorAll("[data-color-group]"),r=0;r<i.length;r++)i[r]&&i[r].dataset&&i[r].setAttribute("fill",t[parseInt(i[r].dataset.colorGroup)]);return n.innerHTML}(r.content,this.properties.colorGroups);(i=this.createElement("img","svg-img",!1,null)).setAttribute("src","data:image/svg+xml;charset=UTF-8,".concat(encodeURIComponent(o)))}else{if(this.properties.localUrl){var a=void 0!==bannerConfig.imgLocalPath?bannerConfig.imgLocalPath:"media/";n="".concat(a).concat(this.properties.localUrl)}else this.properties.url&&(n="".concat(bannerConfig.photosUrl).concat(this.properties.url));var s=n+this.properties.id;i=this.createElement("img","svg-img",!1,null,window.assetsCache[s])}this.displayContainer.appendChild(i);var l=this.getFlipString(this.properties.flip);return this.transform("translateZ(0) rotate(".concat(this.properties.rotation,"deg) ").concat(l),this.displayContainer),this.applyFilters(this.displayContainer,this.properties.adjustColor,this.properties.blur,this.properties.dropShadow),this.reset(),this.slide.banner.statsPresent&&this.slide.banner.stats.trackEvent(this.displayContainer,this),this.applyActions(this.createActionProperties(),this.displayContainer),De(Me(t.prototype),"init",this).call(this,e)}}])&&Ue(n.prototype,i),r&&Ue(n,r),t}(te),Re=function(e,t){var n=0,i=0,r=parseInt(e.slideOffset);switch(e.direction){case"custom":n=parseInt(e.slidePosX),i=parseInt(e.slidePosY);break;case"l2r":n=t?-r:r;break;case"r2l":n=t?r:-r;break;case"t2b":i=t?-r:r;break;case"b2t":i=t?r:-r}return{translateX:n,translateY:i,alpha:parseInt(e.alphaOffset)}},Ne=function(e,t){var n="buildIn"===t,i=Re(e,n),r=i.translateX,o=i.translateY,a=i.alpha,s="".concat(e.type,"_").concat(t,"_").concat(r,"_").concat(o,"_").concat(a);if(w(s))return s;var l={transform:"translateX(".concat(r,"px) translateY(").concat(o,"px)"),opacity:a/100};return k(s,[{percent:n?0:100,props:l},{percent:n?100:0,props:{transform:"translateX(0) translateY(0)",opacity:"1"}}]),s},He=function(e,t){var n="buildIn"===t,i="alpha_".concat(t);if(w(i))return i;return k(i,[{percent:n?0:100,props:{opacity:"0",transform:"translateX(0) translateY(0)"}},{percent:n?100:0,props:{opacity:"1"}}]),i};String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0;if(0===i)return!1;for(var r,o,a=0|t,s=Math.max(a>=0?a:i-Math.abs(a),0);s<i;){if((r=n[s])===(o=e)||"number"==typeof r&&"number"==typeof o&&isNaN(r)&&isNaN(o))return!0;s++}return!1}}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.getClickTagValue=Q;var Ge=function(){var e=new we;return window.document.addEventListener("DOMContentLoaded",(function(){window.bannerJson&&(e.init(window.document.getElementById("bs"),window.bannerJson,window.bannerConfig),window.addEventListener&&window.addEventListener("message",(function(t){var n=window.bannerJson.hash;t.data==="BS_BANNER_IS_VISIBLE_".concat(n)&&(e.banner.stats.trackViewed(),t.source.postMessage("BS_BANNER_IS_VISIBLE_RECEIVED_".concat(n),t.origin))}),!1))})),e};window.BS_eaUtils=r,window.BS_eaUtils,window.BS_eff=Y,window.BS_eff,window.BS_EventDispatcher=q,window.BS_EventDispatcher,window.BS_BaseDisplay=te,window.BS_BaseDisplay,window.BS_BannerDisplay=he,window.BS_BannerDisplay,window.BS_SlideDisplay=le,window.BS_SlideDisplay,window.BS_EmbedCanvas=we,window.BS_EmbedCanvas,window.BS_ImageDisplay=Ee,window.BS_ImageDisplay,window.BS_ShapeDisplay=Le,window.BS_ShapeDisplay,window.BS_SvgDisplay=ze,window.BS_SvgDisplay,window.BS_slide=Ne,window.BS_slide,window.BS_alpha=He,window.BS_alpha,window.BS_init=Ge,window.BS_init;Ge()}]);